import { useHistory } from "react-router-dom";
const useLogout = () => {
    let history = useHistory();
    const logout = () => {
        history.replace('/login')
    }
    return {
        logout
    }
}

export default useLogout